import request from '@/utils/request'
// 获取全部信息
export function getMailboxAllApi() {
    return request({
        url: '/community',
        method: 'get',
    })
}

// 获取信箱列表
export function getMailboxListApi(params) {
    return request({
        url: '/service/mailbox',
        method: 'get',
        params
    })
}

// 获取信箱详情
export function getMailboxInfoApi(id) {
    return request({
        url: '/service/mailbox/' + id,
        method: 'get',
    })
}

// 新增数据
export function addMailboxApi(data) {
    return request({
        url: '/service/mailbox',
        method: 'post',
        data
    })
}

// 修改数据
export function editMailboxApi(data) {
    return request({
        url: '/service/mailbox/' + data.id,
        method: 'put',
        data
    })
}

// 删除数据
export function delMailboxApi(id) {
    return request({
        url: '/service/mailbox/' + id,
        method: 'delete',
    })
}